﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ReNameEx
{
    public static class Extension
    {

        public static int ToInt32(this string str)
        {
            int result = 0;
            try
            {
                if (!string.IsNullOrEmpty(str))
                {
                    result = Convert.ToInt32(str);
                }
            }
            catch
            {

            }
            return result;
        }
    }
}
